Configure containers to run as non-root user #217
Merged
shaheislamdfe merged 1 commit intomasterfrom Aug 26, 2025
Merged
Conversation
…ance This change addresses ITHC security recommendations that containers should: - Not run as root user - Not run with GID <= 10000 - Not run with UID <= 10000 Changes: - Dockerfile: Create appuser/appgroup with UID/GID 10001 and set USER 10001 - terraform/application/application.tf: Add run_as_user, run_as_group, and run_as_non_root settings to web_application module - terraform/application/variables.tf: Add run_as_non_root variable with default value of true These changes ensure containers run securely on AKS hosts following best practices. The Terraform configuration will be fully functional once terraform-modules PR #158 is promoted to stable. Testing requirements: - Verify application starts without errors - Confirm no issues with worker processes (if applicable) - Full dev testing required to ensure no runtime permission issues
129e483 to
4d61bf5
Compare
|
Review app for PR 217 was deleted |
vipin-dfe
approved these changes
Aug 26, 2025
peteryates
approved these changes
Aug 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change addresses ITHC security recommendations that containers should:
Changes:
These changes ensure containers run securely on AKS hosts following best practices.
The Terraform configuration will be fully functional once terraform-modules PR #158
is promoted to stable.
Testing requirements: